/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package IR;

import java.io.Reader;
import org.apache.lucene.analysis.*;
import org.apache.lucene.util.Version;

/**
 *
 * @author Shadownest
 */
public class Analyseur extends Analyzer
{
    @Override
    public TokenStream tokenStream(String fieldName, Reader reader)
    {
        TokenStream result = new WhitespaceTokenizer(Version.LUCENE_35, reader);
        result = new ProperNameTokenFilter(result);
        result = new LowerCaseFilter(result);
        return result;
    }
}
